﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Direct.Mvc;
using System.Web.Mvc;
using Direct.Security;
using Direct.Core;

namespace Direct.Server.Modules.SysAdmin.SecurityAdmin
{
    public class PermissionServicesController : ServerControllerBase
    {
        public ActionResult PermissionEditorPart(string tk)
        {
            var token = new Token(tk);
            var accountService = ServiceLocator.GetInstance<IAccountService>();
            var authService = ServiceLocator.GetInstance<IAuthorizationService>();


            var objType = ReflectionHelper.GetEnumItemByName<SecObjType>(token.Get("objType"), true);
            var objId = token.Get("objId");

            //var secObj = accountService.Get

            //authService.
            return null;
        }
    }
}
